﻿namespace Pibby.Core.IO
{
	using System;

	public class SpecialFolderPathPair
	{
		public SpecialFolderPathPair(string folder)
		{
			this.Name = folder;
			this.Folder = (Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), folder);
		}

		public SpecialFolderPathPair(Environment.SpecialFolder folder)
		{
			this.Folder = folder;
			this.Name = this.Folder.ToString();
		}

		public string Name
		{
			get;
			private set;
		}

		public Environment.SpecialFolder Folder
		{
			get;
			private set;
		}

		public string Path
		{
			get { return Environment.GetFolderPath(this.Folder); }
		}
	}
}
